<UserControl x:Class="Majesty_of_Omega.GUI.Controls.StarPlanetCursor"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <!-- The Viewbox enables relative simple scaling of the whole content -->
  <Viewbox>
    <Grid>
      <Rectangle Name="StarPlanetCursorRect" Width="180" Height="180">
        <Rectangle.Triggers>
          <EventTrigger RoutedEvent="Rectangle.Loaded">
            <BeginStoryboard>
              <Storyboard >
                <DoubleAnimation
                  Storyboard.TargetName="rotationStarCursor"
                  Storyboard.TargetProperty="Angle"
                  From="0" To="360" Duration="0:0:5"
                  RepeatBehavior="Forever"
                    >
                </DoubleAnimation>
              </Storyboard>
            </BeginStoryboard>
          </EventTrigger>
        </Rectangle.Triggers>
        <Rectangle.Fill>
          <ImageBrush ImageSource="{DynamicResource StarCursorBitmap}"  >
            <ImageBrush.RelativeTransform>
              <RotateTransform x:Name="rotationStarCursor" CenterX="0.5" CenterY="0.5" />
            </ImageBrush.RelativeTransform>
          </ImageBrush>
        </Rectangle.Fill>
      </Rectangle>
    </Grid>
  </Viewbox>
</UserControl>
